
import { createSlice } from '@reduxjs/toolkit'


let store = createSlice({
    name: 'PersonStroeTest',
    initialState: {
        personList: []
    },

    reducers: {
        addPerson(state, action) {
            state.personList.unshift(action.payload)
        }
    }
})

export let { addPerson } = store.actions
export default store.reducer


